
package cz.cvut.fel.y36mm1.videostreaming.screens;

import cz.cvut.fel.y36mm1.videostreaming.MainMidlet;
import javax.microedition.lcdui.Displayable;

/**
 * Screen for displaying errors. If told, remembers where from it was called.
 * @author Jiri Chadima, chadij1
 */
public class ErrorScreen extends AbstractScreen {

	private String error = "";
	private Displayable historyScreen;

	public Displayable getHistoryScreen() {
		return historyScreen;
	}

	public ErrorScreen(MainMidlet root, String title, String error) {
		super(root, title);
		this.error = error;
		initComponents();
	}

	public void initComponents() {
		append(error);
	}

	public void setHistoryScreen(Displayable d) {
		historyScreen = d;
	}
	
}
